﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sparkle.Hosting;
using ReportLib;

namespace Sparkle.Wpf.Demo.UI.Attributes
{
    public class ReportAttribute : DynamicLinkAttribute
    {
        public string FolderName { get; set; }

        public string Title { get; set; }

        public override string ToString()
        {
            return Title;
        }

        public override IList<object> GetDynamicLinks(object refEntity)
        {
            List<object> retuList = new List<object>();
            retuList.Add(new ReportSummary { ReportName= "employeeDetails", FolderName = this.FolderName });
            retuList.Add(new ReportSummary { ReportName = "Holidays", FolderName = this.FolderName });
            retuList.Add(new ReportSummary { ReportName = "Sickness", FolderName = this.FolderName });

            return retuList;
        }
    }
}
